<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="novatar" uri="/novatar-tags"%><%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html>
<html>
<head>
<novatar:head title="sendMessage.name"></novatar:head>
<novatar:easyui />
<style>
    pre {outline: 1px solid #ccc; padding: 5px; margin: 5px; }
    .string { color: green; }
    .number { color: darkorange; }
    .boolean { color: blue; }
    .null { color: magenta; }
    .key { color: red; }
</style>
<script type="text/javascript" src="${scripts}/sendMessage.js?v=${version}"></script>
<script type="text/javascript">
    window.contextPath = "${contextPath}";
</script>
</head>
<body class="easyui-layout">
    <div style="width: 700px;height: 600px;margin-top: 50px;margin-left: 50px">
    	<form id="bindForm" action="" method="post">
    		<div >
    			<textarea  class="easyui-textbox" data-options="multiline:true, prompt : '发送报文'"
    					rows="8" cols="20" id="jsonBind" style="width: 650px;height: 200px"></textarea>
    		</div>
    		<div style="margin-top: 20px;margin-bottom: 40px;">
    			<div style="float: left;margin-left: 200px;margin-right: 50px">
    				<input  class="easyui-linkbutton" type="button" id="bind" value="绑定" onclick="bindCheck()" 
    					style="width: 80px;height: 35px;font-weight:bold;">
    			</div>&nbsp;&nbsp;
    			<div style="float: left;">
    				<input  class="easyui-linkbutton" type="button" id="unbind" value="解绑" onclick="unBindCheck()" 
    					style="width: 80px;height: 35px;font-weight:bold;">
    			</div>
    			<div style="float: left;margin-left: 15px">
    				<input  class="easyui-linkbutton" type="button" id="sendkafka" value="发送kafka" onclick="sendKafka()" 
    					style="width: 80px;height: 35px;font-weight:bold;">
    			</div>
    		</div>
    		<div id="msgContent">
                    <pre  id="jsonUnbind" style="width: 650px;"></pre>
    		</div>
    	</form>
    </div>
</body>
</html>
